package Test;
        //泛型类
public class Alg<T extends Comparable<T>> {
//    public Object[] array = new Object[10];

    public T findmax(T[] array) {
        T max = array[0];
        for (int i = 1; i < array.length; i++) {
            if (array[i].compareTo(max) > 0) {
                max = array[i];

            }
        }
        return max;
    }


}
